package zjc.bookkeeping.minepage.aAssetaccount;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

import zjc.bookkeeping.R;
import zjc.bookkeeping.activity.MainActivity;

public class AssetAddActivity extends AppCompatActivity implements View.OnClickListener {
    View viewV;
    Button buttonB;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_asset_add);
        initView();
    }

    private void initView() {
        viewV = findViewById(R.id.view);
        viewV.setOnClickListener(this);
        buttonB = findViewById(R.id.button);
        buttonB.setOnClickListener(this);
    }
    //点击下方空白返回资产账户页面

    //前往具体的新增页面
    public void goaddaccount(View v){
        finish();
        Intent intent = new Intent(this, AssetAddaccountActivity.class);
        switch (v.getId()){
            case R.id.xj:
                intent.putExtra("acclass","a_list_xj");
                break;
            case R.id.zfb:
                intent.putExtra("acclass","a_list_zfb");
                break;
            case R.id.wx:
                intent.putExtra("acclass","a_list_wx");
                break;
            case R.id.yhk:
                intent.putExtra("acclass","a_list_yhk");
                break;
            case R.id.qqqb:
                intent.putExtra("acclass","a_list_qqqb");
                break;
            case R.id.qt:
                intent.putExtra("acclass","a_list_qt");
                break;
        }
        startActivity(intent);

    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.button:
                finish();
            case R.id.view:
                finish();
        }
    }
}